(function () {
    var ff=function (resolve, reject) {
        console.log("Promise");
        resolve({a:1})
    };
    new Promise(ff).then(function (ret) {
        console.log("resolve1");
        console.log(ret);
    }).then(function (resolve) {
        console.log("resolve2");
    })
})();